﻿<?php include_once("../configs.php");?>
<html>
<head>
   <meta http-equiv="content-type" content="text/html;charset=utf-8" />
   <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/menu.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/menu.js"></script>
	 <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
       
	<div id="swrapper-w">
	<div id="swrapper">
	<?php
		 echo "Xin chào <font color=blue>".@$_SESSION["admin"]."</font>. &nbsp;Chúc bạn một ngày tốt lành!";?>
		 <a href="logout.php"> <font color=blue>&nbsp; Thoát </font></a>
			
	<div id="menutop"> <?php include_once("modules/menu.php");?> </div>
	<div id="content">
	<?php
	               
                  
                  if(isset($_REQUEST['option']))
                        {
	                    if(!isset($_REQUEST['cat']))
                               {      
                        include_once("components/".$_REQUEST['option']."/"."index.php");
                     }
	                        	else
		{ 
		  include_once("components/".$_REQUEST['option']."/".$_REQUEST['cat'].".php");
		}
		
   
  
   }
	?>
	</div>
	<div id="footer"> <h3> Trang Admin </h3>  </div>
	
</div>
</div>
</body>
</html>